package com.example.administrator.radarplusfriendsdemo.been;

import android.support.annotation.DrawableRes;
import android.support.annotation.IntDef;

public class Info {

    public static final int TYPE_NONE = 1;//什么标识也没有
    public static final int TYPE_WO_QING = 2;//我请吃饭
    public static final int TYPE_QING_WO = 3;//请我吃饭

    private int portraitId;//头像id
    private String name;//名字
    private int type;//类型

    @IntDef({TYPE_NONE,TYPE_QING_WO,TYPE_WO_QING})
    public @interface TypeAnnotation{}//定义了type的取值


    public int getPortraitId() {
        return portraitId;
    }

    public void setPortraitId(@DrawableRes int portraitId) {
        this.portraitId = portraitId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @TypeAnnotation
    public int getType() {
        return type;
    }

    public void setType(@TypeAnnotation int type) {
        this.type = type;
    }
}
